print TCHAR[] on console

Posted by hara on Stack Overflow See other posts from Stack Overflow or by hara
Published on 2010-05-11T16:58:01Z Indexed on 2010/05/11 17:04 UTC
Read the original article Hit count: 205

Filed under:
|

Hi

I'm quite sure that it is a stupid issue but it drives me crazy..

how could i print on the console a TCHAR array?

DWORD error = WSAGetLastError();
TCHAR errmsg[512];
int ret = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0, error, 0, errmsg, 511, NULL);

i need to print errmsg...

© Stack Overflow or respective owner

Related posts about visual-c++

Related posts about c++